//
//  ListenTestView.m
//  xpkc
//
//  Created by TopSage iOS on 14-8-18.
//  Copyright (c) 2014年 wanmeizty. All rights reserved.
//

#import "ListenTestView.h"

@implementation ListenTestView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self creatView];
    }
    return self;
}
/**
 *   免费试听界面
 *
 *   @return
 */
- (void)creatView{
    _scrollView=[[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 40)];
    _scrollView.backgroundColor=[UIColor colorWithRed:240/255.f green:239/255.f blue:244/255.f alpha:1];
    [_scrollView setShowsHorizontalScrollIndicator:NO];
    _scrollView.contentSize = CGSizeMake(600, 40);
    //新增目录页，不显示顶部滚动栏并且tableview置顶
//    [self addSubview:_scrollView];
    _tableView=[[UITableView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-114)];
    _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    [self addSubview:_tableView];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
